package org.qiyu.live.common.interfaces.dto;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @Description: 分页查询所用的包装类
 * @Author: 张广焱
 * @Date: 2023-12-15 19:41
 */
public class PageWrapper<T> implements Serializable {
    @Serial
    private static final long serialVersionUID = -6304531648603181862L;

    private List<T> list;
    /**
     * 是否还有下一页
     */
    private boolean hasNext;

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public boolean isHasNext() {
        return hasNext;
    }

    public void setHasNext(boolean hasNext) {
        this.hasNext = hasNext;
    }

    @Override
    public String toString() {
        return "PageWrapper{" +
                "list=" + list +
                ", hasNext=" + hasNext +
                '}';
    }
}
